{/include file=$this->header_file /}
<!-- 以上顶部信息不要改-->
<link rel="stylesheet" type="text/css" href="/css/acl.css" />
<div id="acl">
{/include file=$this->location_file /}

<table width="80%" border="1" align="center">
  <tr>
    <th>已有操作列表</th>
  </tr>
  <tr>
    <td>
			<table width="100%" border="1">
			
			  <tr>
			    <th>中文名</th>
			    <th>英文名</th>
			    <th colspan="2">操作</th>
		      </tr>
			  {/foreach key=key1 item=item1 from=$resourcedo_name_zh/}
			  <tr onmouseover="this.style.background='#FFFF66'" onmouseout="this.style.background=''">
				<td>{/$item1/}</td>
				<td>{/$resourcedo_name_en[$key1]/}</td>
				<td><a href="{/$www_root_url/}/acladmin/resourcedo/?do_type=up&key={/$key1/}">修改</a></td>
				<td><a  href="#"onclick="javascript:if  (confirm('确定要删除={/$item1/}=吗?'))  href='{/$www_root_url/}/acladmin/resourcedo/?do_type=del&key={/$key1/}';else  return;">删除</a></td>
			  </tr>
			  {//foreach/}
			</table>			
	</td>
  </tr>
  {/if $do_type == 'no'/}
  <Script   language="JavaScript">   
     //验证表单
      function   check_add()   
      {       
       if   (form1.info_zh.value == "")   
          {   
              alert("请输入中文描述!");   
              form1.info_zh.focus();   
              return   (false);   
          } 
		  
	   if   ( form1.info_en.value == "")   
          {   
              alert("请输入英文描述!");   
              form1.info_en.focus();   
              return   (false);   
          } 
      }  
	   
  </Script>
	<tr style="background:#FFFFCC;" onmouseover="this.style.background='#FFFF66'" onmouseout="this.style.background='#FFFFCC'">
		<td>
				<form id="form1" name="form1" method="post" action="{/$www_root_url/}/acladmin/resourcedo/?do_type=add" onsubmit="return check_add();">
					<table width="80%" border="1" align="center">
					  <tr>
						<td colspan="2" align="center">新增</td>
					  </tr>
					  
					  <tr>
						<td>操作类型英文描述</td>
						<td><input type="text" name="info_en" />
				(不能与已有的相同) </td>
					  </tr>
					  <tr>
						<td>操作类型中文描述</td>
						<td><input name="info_zh" type="text" value="{/$info_zh/}" /></td>
					  </tr>
					  <tr>
						<td colspan="2" align="center"><input type="hidden" name="do_type" value="add" />
						<input type="submit" name="Submit" value="提交" style="background:#FF0000;" />
					    <input type="reset" name="Submit2" value="重置" style="background:#0066FF;" /></td>
					  </tr>
				  </table>
			  </form>
    </td>
  </tr>
  {//if/}
    {/if $do_type == 'up'/}
  <Script   language="JavaScript">   
     //验证表单
      function   check_up()   
      {       
       if   (form1.info_zh.value == "")   
          {   
              alert("请输入中文描述!");   
              form1.info_zh.focus();   
              return   (false);   
          } 
		  
	   if   ( form1.info_en.value == "")   
          {   
              alert("请输入英文描述!");   
              form1.info_en.focus();   
              return   (false);   
          } 
      }  
	   
  </Script>
	<tr style="background:#FFFFCC;" onmouseover="this.style.background='#FFFF66'" onmouseout="this.style.background='#FFFFCC'">
		<td>
				<form id="form2" name="form2" method="post" action="{/$www_root_url/}/acladmin/resourcedo/?do_type=up&key={/$info_key/}" onsubmit="return check_up();">
					<table width="80%" border="1" align="center">
					  <tr>
						<td colspan="2" align="center">修改 &nbsp;&nbsp;&nbsp;<a href='javascript:location.reload();'>刷新页面</a>&nbsp;&nbsp;&nbsp;<a href='javascript:history.go(-1)'>返回</a></td>
					  </tr>
					  
					  <tr>
						<td>操作类型英文描述</td>
						<td><input type="text" name="info_en"  value="{/$info_en/}" />
				(不能与已有的相同) </td>
					  </tr>
					  <tr>
						<td>操作类型中文描述</td>
						<td><input name="info_zh" type="text" value="{/$info_zh/}" /></td>
					  </tr>
					  <tr>
						<td colspan="2" align="center">
						<input type="submit" name="Submit" value="提交" style="background:#FF0000;" />
					    <input type="reset" name="Submit2" value="重置" style="background:#0066FF;" /></td>
					  </tr>
				  </table>
			  </form>
    </td>
  </tr>
  {//if/}
</table>

</div>
<!-- 以下底部信息不要改-->
{/include file=$this->bottom_file /}